import { createRouter, createWebHistory } from "vue-router"

const routes = [
  {
    path: '/',
    redirect: '/loading'
  },
  {
    path: '/permission',
    component: () => import("@/views/permission.vue")
  },
  {
    path: '/loading',
    component: () => import("@/views/loading.vue")
  },
  {
    path: '/drag',
    component: () => import("@/views/drag.vue")
  },
  {
    path: '/validate',
    component: () => import("@/views/validate.vue")
  },
  {
    path: '/mouse',
    component: () => import("@/views/mouse.vue")
  },
  {
    path: '/intersection',
    component: () => import("@/views/intersection.vue")
  },
  {
    path: '/hotkey',
    component: () => import("@/views/hotkey.vue")
  }
]

export default createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes
})